package com.yc.cloudvideo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author LYYT
 * @since 2022-08-03
 */
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "pid", type = IdType.AUTO)
    private Long pid;

    private Long cid;

    private Long parentid;
    private Long brotherid;

    public Long getParentid() {
        return parentid;
    }

    public void setParentid(Long parentid) {
        this.parentid = parentid;
    }

    public Long getBrotherid() {
        return brotherid;
    }

    public void setBrotherid(Long brotherid) {
        this.brotherid = brotherid;
    }

    @TableField(exist = false)
    private User user;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    private Long uid;

    private LocalDateTime talkTime;

    private Integer likenum;

    private String body;

    public Integer getLikenum() {
        return likenum;
    }

    public void setLikenum(Integer likenum) {
        this.likenum = likenum;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public LocalDateTime getTalkTime() {
        return talkTime;
    }

    public void setTalkTime(LocalDateTime talkTime) {
        this.talkTime = talkTime;
    }


    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "pid=" + pid +
                ", cid=" + cid +
                ", uid=" + uid +
                ", talkTime=" + talkTime +
                ", likenum=" + likenum +
                ", body=" + body +
                "}";
    }
}
